<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="f" %>
<%@ include file="prelude.jsp" %>

<c:set var="all_discussions">
  <a href="<c:out value='${forumPath}'/>">all</a>
</c:set>
<c:set var="hot_discussions">
  <a href="<c:out value='${forumHotPath}'/>">updated last week</a>
</c:set>
<c:choose>
  <c:when test="${view == 'all'}">
    <c:set var="all_discussions">
      <b id=all_hot_selected>all</b>
    </c:set>
  </c:when>
  <c:when test="${view == 'hot'}">
    <c:set var="hot_discussions">
      <b id=all_hot_selected>updated last week</b>
    </c:set>
  </c:when>
</c:choose>
<div class="link">
<c:out value="${all_discussions}" escapeXml="false"/>&nbsp;|&nbsp;<c:out value="${hot_discussions}" escapeXml="false"/>&nbsp;|&nbsp;
<form class="gse-search-box" action="/search" style="display:inline">
<tr>
<td class="gsc-input"><input style="display:inline; margin:0" type="text" class="gsc-input" name="q" value='<c:out value="${q}"/>'></input></td>
<td class="gsc-search-button"><input style="display:inline; margin:0" type="submit" value="Search" class="gsc-search-button"></input></td>
</tr>
</form>
</div>
